package com.xjtu.chapter04.ex4_4;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/14 21:32
 */
public class Circle extends Shape {
    float r;
    Circle(float r){
        this.r = r;
    }

    public float area() {
        return (float)(3.14*r*r);
    }
}
